﻿using System;
using Volo.Abp.Domain.Entities.Auditing;

namespace Tolo.SimplePG.Entities.Books;

public class Book : AuditedAggregateRoot<Guid>
{
    public string? Name { get; set; }

    public BookType Type { get; set; }

    public DateTime PublishDate { get; set; }

    public float Price { get; set; }

    public Author Author { get; set; } = null!;

    public Publisher Publisher { get; set; } = null!;
}

public class Author
{
    public string? Name { get; set; }

    public int Age { get; set; }

    public bool IsMan { get; set; }
}

public class Publisher
{
    public string? Name { get; set; }

    public string? Address { get; set; }
}